public class Poker {
	
	

	public static void main(String[] args) {
		
		Frame gra = new Frame();
		
		
		while(gra.dialog.isShowing()){
			System.out.print("");
		}

		
		Table table = new Table();
		table.playerChoosing(gra.dialog.iloscGraczy,gra.dialog.iloscZywych,gra.dialog.wpisowe,gra.dialog.startowe);
		
		while(table.quantity-table.ileOdp>1){
			table.addCard();
			//table.auction();
		    table.cardChange();
		    //table.auction();
		    table.whoWins();
		}
	}		
}
